package com.wanxi.spring.cloud.team.model;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author 蒋帆
 * @since 2020-12-21
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@JsonIgnoreProperties(ignoreUnknown = true)
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键，自动递增
     */
    private Integer id;

    /**
     * 用户名
     */
    private String name;

    /**
     * 用户学号
     */
    private String code;

    /**
     * 密码
     */
    private String password;

    /**
     * 用户头像
     */
    private String icon;

    /**
     * 电话
     */
    private String phone;

    /**
     * 入学时间
     */
    private String entranceTime;

    /**
     * 入学批次
     */
    private String batch;

    /**
     * 用户性别
     */
    private String sex;
    private String sexName;

    /**
     * 用户住址
     */
    private String address;

    /**
     * 学历
     */
    private String graduate;
    private String graduateName;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 用户账号状态
     */
    private String status;
    private String statusName;
    /**
     * 是否可用标识
     */
    private String enable;
    private String enableName;

    /**
     * 备注
     */
    private String note;

    private Integer role;
    private String roleName;

}
